#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>

int main(){
	char str[64];
	scanf("%s", str);

	putchar(*str);

	char* s = str + 1;

	int i = strlen(s);

	while (i-- > 0) {
		putchar(s[i]);
	}
};